# coding=utf-8
# 全世界最帅的帅哥
from flask_restful import Resource
from ysgg1_club_subject.subject_views.liked_views import create_liked, get_subject_liked_page


class SubjectLikedResource(Resource):

    def get(self, action=None):
        if action == "get_liked_page":
            return get_subject_liked_page()

    def post(self, action=None):
        if action == "create_liked":
            return create_liked()
